//
//  DownloadHandler.h
//  Download
//
//  Created by Maurice on 2021/7/17.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Downloader : NSObject

- (void)downloadWithURL:(NSURL *)URL
         successHandler:(void (^)(NSURL *URL, NSURLResponse * _Nullable response))successHandler
          failureHadler:(void (^)(NSError * error))failureHadler;

@end

NS_ASSUME_NONNULL_END
